package com.xique.client.controller;

import com.xique.client.api.IClientApi;
import com.xique.common.core.utils.SecurityUtils;
import com.xique.common.core.web.domain.AjaxResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shd
 * @create 2021/7/28 17:23
 */
@RestController
@RequestMapping("/common")
public class ClientCommonController {

    @Autowired
    private IClientApi clientApi;

    /**
     * 车辆管理类型列表
     * @author shd
     * @date 2021/7/29 10:35
     * @return com.xique.common.core.web.domain.AjaxResult
     */
    @GetMapping("mngtype")
    @ApiOperation("车辆管理类型列表")
    public AjaxResult mngtype() {
        return new AjaxResult(clientApi.getMngTypeInfo(SecurityUtils.getParkId()));
    }
}
